package com.edu.dao;

import java.util.ArrayList;
import java.util.List;

import com.edu.entity.Articles;
import com.edu.util.PageData;
import com.edu.entity.Types;



public interface IArticleDao {
	//根据文章标题模糊查询1
		public List<Articles> queryArticlesByLike(String articlesLike);
	//根据文章id模糊查询
		public List<Articles> queryArticlesById(String articlesId);
	//查询最新课程
		public List<Articles> queryTopArticles();
   //查看所有课程信息
		public List<Articles> queryAllArticles();
	//注销文章
		public boolean writeOutArticle(int articleId);
	//恢复文章
		public boolean writeInArticle(int articleId);
	//分页查询所有或标题
		public PageData queryAllArticlesByTitle(int pageNo, int pageSize, String titleKey);
	//查询今日新上传文章数
		public int queryNewArticle();
	//查询所有文章数
		public int queryAllArticle();
	//查看所有课程信息
		public List<Articles> queryArticles();

	//添加文章
		public boolean addArticle(Articles articles);
	//类型对应编号
		Types queryId(String typeContent);
		
		//查询7天新增数量
		public int[] query7DayAtricles();
		//根据Id查找文章
		public Articles queryArticlesById(int atricleId);
        //根据类型查文章数
		 public int[] queryTypeArticles();
		 
		//查询文章类型名称
		 public List<String> queryTypsName() ;
		 
		//按类型分页查询所有
		public PageData queryAllArticlesByTypes(int pageNo, int pageSize, String typesname,String keytitle);
		
		//增加阅读量
		public boolean addRead(int ariticleId);
		
		//获得心灵鸡汤
		public String queryGoodWord();

}
